Todays cars are rated at the flywheel, and do not take into consideration drivetrain. When tested they are fitted with production exhaust and intakes however.
Note, that in the past, like 60's muscle cars, HP was rated 'gross'; at the flywheel but without exhaust or OEM intakes. Hence 300HP today, is worth more than 300HP from the 60's. ; )